

export function formatter(row, column, cellValue, index, { from } = {}) {
  let h = vueCompositionAPI.h
  // return cellValue + 'SDSDS';
  return (<div><el-link>{cellValue}</el-link></div>);
  // let el = vueCompositionAPI.h
  // return  el('el-link', {
  //
  // }, cellValue)
}

export let obj = {
  defaultUrl: '/api/list',
  request: globalThis.Req,
  columnDefMap: {
    sourceDbName: {
      formatter
    },
    prop11: {
      search: {
        type: 'string',
        ui: {
          label: '测试',
          widget: 'CusSelect',
          widgetConfig: {
            options: [
              {
                label: '1',
                value: '1'
              },
              {
                label: '2',
                value: '2'
              }
            ]
          }
        }
      }
    }
  },
}

export function onCurdInit(ctx) {
}

export async function onCurdDelete(ctx) {
  // console.log('onCurdDelete', ctx)
  await ctx.refs.searchTable.search()
  await ZY.sleep(10000)
}
